
#ifndef USE_ATOMIC_
#define USE_ATOMIC_

#include <cstdint>
#include <atomic>
using namespace std;


#pragma once
class UseAtomic
{

public:
	UseAtomic();
	~UseAtomic();
	void inc();

	uint64_t getCount();
private:
	static atomic<uint64_t> count;

};

#endif // !USE_ATOMIC_



